<div id="container">
	<div class="shell">	
		
		<!-- Main -->
		<div id="main">
			<div class="cl">&nbsp;</div>
			
			<!-- Content -->
			<div id="content">
				
				<!-- Box -->
				<div class="box">
					<!-- Box Head -->
					<div class="box-head">
						<h2 class="left">Quản lý chức năng</h2>
						<!--
						<div class="right">
							<label>Tìm kiếm</label>
							<input type="text" class="field small-field" />
							<input type="submit" class="button" value="Tìm" />
						</div>
						-->
					</div>
					<!-- End Box Head -->	

					<!-- Table -->
					<div class="table">
						<table width="100%" border="0" cellspacing="0" cellpadding="0">
							<tr>
								<th width="13">#</th>
								<th>Tên Chức Năng</th>
								<th>Ẩn/Hiện</th>
								<th width="100" class="ac">Chức Năng</th>
							</tr>
							
							<tr class="">
								<td>1</td>
								<td><h3><a href="?action=lienhe">Liên hệ</a></h3></td>
								<td>
									<img src="images/bat.png">									
								</td>
								<td><a class="ico edit" href="?action=lienhe">Cấu hình</a></td>
							</tr>
							
							<?php
							$where = " WHERE id IN(57, 153, 135, 168, 174)";
							// $where = "";
							
							$sql="SELECT `id`, `title`,`published` FROM `dm_modules` $where";
							$query=mysql_query($sql);	
							
							// $value=array();
							// $value['query']=$query;
							// $value['number']=$number;
							// echo "<pre>";
							// print_r($query);
							// echo "</pre>";
							
							$i=0;
							while($mn=mysql_fetch_array($query))
							{
								if($i % 2==0)
								{
									$trclass="odd";
								}else{
									$trclass="";
								}
								$i++;
							?>
							<tr class="<?php echo $trclass?>">
								<td><?php echo $i+1;?></td>
								<td><h3><a href="?action=params_sua&id=<?php echo $mn['id']?>"><?php echo $mn['title']?></a></h3></td>
								<td>
									<?php if($mn['published']==1)
									{
										echo "<img src='images/bat.png'/>";
									}else{
										echo "<img src='images/tat.png'/>";
									}
									?>
									
								</td>
								<td><a href="?action=params_sua&id=<?php echo $mn['id']?>" class="ico edit">Cấu hình</a></td>
							</tr>
							<?php
								
								//echo  $mn['title'];
							}
							?>						
							
						</table>
						<div class="pagging">

						</div>
						<!-- End Pagging -->
						
					</div>
					<!-- Table -->
					
				</div>
				<!-- End Box -->
						

			</div>
			<!-- End Content -->
			
			<!-- Sidebar -->
			
			<div class="cl">&nbsp;</div>			
		</div>
		<!-- Main -->
	</div>
</div>